package org.neuedu.chapter06_0621.demo09;


public class Controller {
    public static void main(String[] args) {
        Userinfo userinfo = new Userinfo();
        userinfo.setName("admin");
        userinfo.setPassword("999");
        userinfo.setAge(22);

        Service service = new Service();
        service.loginCheck(userinfo);
        service.loginCheck2("root", "123");
        String adult = service.isAdult(userinfo);
        System.out.println(adult);
    }
}
